package com.webshopping.entry;

import java.math.BigDecimal;
import java.util.Arrays;

public class ShopCar {

	private int id;
	private int userId;
	private int commodityId;
	private String commodityName;
	private byte[] img;
	private String imgName;
	private BigDecimal price;
	private BigDecimal discount;
	private int num;
	private int allNum;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getUserId() {
		return userId;
	}
	public void setUserId(int userId) {
		this.userId = userId;
	}
	public int getCommodityId() {
		return commodityId;
	}
	public void setCommodityId(int commodityId) {
		this.commodityId = commodityId;
	}
	public byte[] getImg() {
		return img;
	}
	public void setImg(byte[] img) {
		this.img = img;
	}
	public BigDecimal getPrice() {
		return price;
	}
	public void setPrice(BigDecimal price) {
		this.price = price;
	}
	
	
	public int getAllNum() {
		return allNum;
	}
	public void setAllNum(int allNum) {
		this.allNum = allNum;
	}
	public BigDecimal getDiscount() {
		return discount;
	}
	public void setDiscount(BigDecimal discount) {
		this.discount = discount;
	}
	public int getNum() {
		return num;
	}
	public void setNum(int num) {
		this.num = num;
	}
	public String getCommodityName() {
		return commodityName;
	}
	public void setCommodityName(String commodityName) {
		this.commodityName = commodityName;
	}
	
	public String getImgName() {
		return imgName;
	}
	public void setImgName(String imgName) {
		this.imgName = imgName;
	}
	@Override
	public String toString() {
		return "ShopCar [id=" + id + ", userId=" + userId + ", commodityId=" + commodityId + ", commodityName="
				+ commodityName + ", img=" + Arrays.toString(img) + ", imgName=" + imgName + ", price=" + price
				+ ", discount=" + discount + ", num=" + num + ", allNum=" + allNum + "]";
	}
	
	
	
	
	
	
	
}
